package com.lunar.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Book {
    @Id
    @Column(name = "bookid")
    private int bookid;
    private String bookname;
    private String bookauthor;
    private String publisher;
    @Column(name = "storecount")
    private int storecount;
    @Column(name = "disid")
    private int disid;
    @Column(name = "saleprice")
    private float saleprice;
    @Transient
    private String discname;
    @Transient
    private float disprice;
}
